<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/taglib.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>添加优惠推送</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<%@ include file="../include/jsCss.jsp" %>
	<script type="text/javascript" src="${webUrl}/js/My97DatePicker/WdatePicker.js"></script>
  </head>
  
  <body>
      <form action="coupons/coupons!" method="post" id="frmCoupons">
			添加优惠推送
			<hr>
			<table border="1">
				<tr>
					<td>推送优惠名称</td>
					<td><input type="text" name="name" id="name"/></td>
				</tr>
				<tr>
					<td>优惠编号</td>
					<td>
						<input type="text" name="name" id="couponsNo"/>
						<span id="noCoupons"></span>
					</td>
				</tr>
				<tr>
					<td>优惠金额</td>
					<td>
						<input type="text" name="amount"/>
						<span id="amount"></span>
					</td>
				</tr>
				<tr>
					<td>优惠份数</td>
					<td>
						<input type="text" name="numbers" onblur="javascript:lowConsumeVal();"/>份
						<span id="numbersSpan"></span>
					</td>
				</tr>
				<tr>
					<td>优惠开始时间</td>
					<td><input type="textbox" size="18" onClick="WdatePicker();" name="beginDate" onFocus="WdatePicker({startDate:'00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" onblur="javascript:onTime();"/></td>
				</tr>
				<tr>
					<td>优惠结束时间</td>
					<td>
						<input type="textbox" size="18" onClick="WdatePicker();" name="endDate" onFocus="WdatePicker({startDate:'00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" onblur="javascript:onTime();"/>
						<span id="numbersSpan"></span>
					</td>
				</tr>
				<tr>
					<td>优惠类型</td>
					<td>
						<input type="text" name="couponsType" onblur="javascript:lowConsumeVal();"/>
						<span id="numbersSpan"></span>
					</td>
				</tr>
				<tr>
					<td>备注</td>
					<td><textarea rows="5" cols="20" name="remark"></textarea></td>
				</tr>
				
				<tr>
					<td colspan="2"><input type="sumbit" value="保存" onclick="valNumber();"/> </td>
				</tr>
			</table>
		 </form>
  </body>
</html>
